package com.qili.service.supplier.impl;

import com.qili.base.mapper.BaseMapper;
import com.qili.base.service.impl.BaseServiceImpl;
import com.qili.entity.supplier.ProjectPlace;
import com.qili.entity.supplier.ProjectPlaceChange;
import com.qili.entity.supplier.dto.ProjectPlaceChangeDTO;
import com.qili.entity.supplier.dto.ProjectPlaceDTO;
import com.qili.entity.supplier.dto.SupplierProjectChangeDTO;
import com.qili.mapper.supplier.ProjectPlaceChangeMapper;
import com.qili.mapper.supplier.ProjectPlaceMapper;
import com.qili.service.supplier.ProjectPlaceChangeService;
import com.qili.service.supplier.ProjectPlaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhaoyongke
 * @date 2021/3/22
 * @description
 */
@Service
public class ProjectPlaceServiceChangeImpl extends BaseServiceImpl<ProjectPlaceChange,String> implements ProjectPlaceChangeService {

    @Autowired
    private ProjectPlaceChangeMapper projectPlaceChangeMapper;
    @Override
    public BaseMapper<ProjectPlaceChange, String> getMappser() {
        return projectPlaceChangeMapper;
    }
    @Override
    public  List<ProjectPlaceChangeDTO> selectPlace(ProjectPlaceChangeDTO dto){
       return   projectPlaceChangeMapper.selectPlace(dto);
    }
    @Override
    public   void deletePlaceChangeByPro(SupplierProjectChangeDTO dto){
        projectPlaceChangeMapper.deletePlaceChangeByPro(dto);

    }
}
